/**
 * @Company: 北京慧点科技有限公司 | www.smartdot.com.cn
 * @Copyright 1998-2020 © Smartdot Technologies Co., Ltd.
 */
package com.springlearn.zhoufei.other.spring.demo1;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 描述该类- JPA
 *
 * @author <a href="mailto:zhoufei@smartdot.com.cn">zhoufei</a>
 * @class: Test
 * @date 2020/9/18 20:09
 * @Verson 1.0 -2020/9/18 20:09
 * @see
 */
public class Test5 {
    
    public static String pathHello = "./other\\Bean.xml";
    
    public static void main(String[] args) {

        AbstractApplicationContext context = new ClassPathXmlApplicationContext(pathHello);

        Hello4 hello4 = (Hello4) context.getBean("hello4");
        Hello5 hello5 = (Hello5) context.getBean("hello5");
        System.out.println();
        System.out.println();
        context.registerShutdownHook();
    }
}